package com.accenture.adf.newcodington.module9.sample;

/**
 * 
 * Movie3D is about a movie theater in New Codington
 * 
 * Topic: Demo on usage of static variables and static block
 * 
 * Instructions:
 * 1. Create a class 'Movie3D_Demo1' with a main() method and make the following changes
 * 2. Declare a private static string variable for theater type between class 
 *    declaration and main() method
 * 3. On next line, declare a private static string variable for theater name
 * 4. On next line, create a static block and initialize the theater type and theater name 
 *    with appropriate values
 * 5. Print "Static block initialized" to console from static block
 * 6. In the main() method, print value of theater type and theater name to the console
 * 
 */


public class Movie3D_Demo1{
	
	//Static fields
	private static String theaterType;
	private static String theaterName;

	//Static block
	static{
		theaterType = "3D";
		theaterName = "Cinema One";
		System.out.println("Static block initialiazed.");
	}
	
	public static void main(String[] args){		
		System.out.println("Theater Type: " + theaterType);
		System.out.println("Theater Name: " + theaterName);
	}	
}
